# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header

inherit distutils cvs

ECVS_SERVER="togra.cvs.sourceforge.net:/cvsroot/togra"
ECVS_MODULE="togra"

DESCRIPTION="Togra is a high-level approach to 3D application scripting using Python and OpenGL. Rather than providing direct access to OpenGL calls, Togra allows users to script a call graph, then evaluates this call graph in C."

HOMEPAGE="http://togra.sourceforge.net/"
RESTRICT="nomirror"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86 ~amd64"
IUSE="debug"
S=${WORKDIR}/${ECVS_MODULE}
DEPEND=">=x11-libs/gtk+-2.4
	>=dev-libs/glib-2.4
	>=dev-util/intltool-0.22
	media-libs/gst-plugins-base
	dev-python/pygtkglext
	dev-libs/atk"
RDEPEND="${DEPEND}
	nls? ( virtual/libintl )"

DOCS="AUTHORS ChangeLog INSTALL NEWS README* THANKS"
USE_DESTDIR="1"

src_compile() {
	emake all || die "make failed."
}
src_install() {
	make PREFIX=${D} install || die "install failed"
}
